home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / docs / linux-do / programm / lpg-0.4 / lpg-0 / LPG / sound.tex < prev    next >
LaTeX Document  |  1995-03-25  |  3.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: Plain text[LF] default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 61 75 74 68 6f 72 20 | 7b 53 76 65 6e 20 47 6f |\author |{Sven Go|
|00000010| 6c 64 74 7d 0a 5c 74 69 | 74 6c 65 20 7b 54 68 65 |ldt}.\ti|tle {The|
|00000020| 20 4c 69 6e 75 78 20 50 | 72 6f 67 72 61 6d 6d 65 | Linux P|rogramme|
|00000030| 72 27 73 20 47 75 69 64 | 65 7d 0a 0a 5c 63 68 61 |r's Guid|e}..\cha|
|00000040| 70 74 65 72 20 7b 53 6f | 75 6e 64 20 50 72 6f 67 |pter {So|und Prog|
|00000050| 72 61 6d 6d 69 6e 67 7d | 0a 41 20 50 43 20 68 61 |ramming}|.A PC ha|
|00000060| 73 20 61 74 20 6c 65 61 | 73 74 20 6f 6e 65 20 73 |s at lea|st one s|
|00000070| 6f 75 6e 64 20 64 65 76 | 69 63 65 3a 20 74 68 65 |ound dev|ice: the|
|00000080| 20 69 6e 74 65 72 6e 61 | 6c 20 73 70 65 61 6b 65 | interna|l speake|
|00000090| 72 2e 20 20 42 75 74 2c | 20 79 6f 75 20 63 61 6e |r. But,| you can|
|000000a0| 0a 61 6c 73 6f 20 62 75 | 79 20 61 20 73 6f 75 6e |.also bu|y a soun|
|000000b0| 64 20 63 61 72 64 20 74 | 6f 20 70 6c 75 67 20 69 |d card t|o plug i|
|000000c0| 6e 74 6f 20 79 6f 75 72 | 20 50 43 20 74 6f 20 70 |nto your| PC to p|
|000000d0| 72 6f 76 69 64 65 20 61 | 20 6d 6f 72 65 0a 73 6f |rovide a| more.so|
|000000e0| 70 68 69 73 74 69 63 61 | 74 65 64 20 73 6f 75 6e |phistica|ted soun|
|000000f0| 64 20 64 65 76 69 63 65 | 2e 20 20 4c 6f 6f 6b 20 |d device|. Look |
|00000100| 61 74 20 74 68 65 20 4c | 69 6e 75 78 20 53 6f 75 |at the L|inux Sou|
|00000110| 6e 64 20 55 73 65 72 27 | 73 20 47 75 69 64 65 20 |nd User'|s Guide |
|00000120| 6f 72 0a 74 68 65 20 53 | 6f 75 6e 64 2d 48 4f 57 |or.the S|ound-HOW|
|00000130| 54 4f 20 66 6f 72 20 73 | 75 70 70 6f 72 74 65 64 |TO for s|upported|
|00000140| 20 73 6f 75 6e 64 20 63 | 61 72 64 73 2e 0a 0a 5c | sound c|ards...\|
|00000150| 73 65 63 74 69 6f 6e 20 | 7b 50 72 6f 67 72 61 6d |section |{Program|
|00000160| 6d 69 6e 67 20 74 68 65 | 20 69 6e 74 65 72 6e 61 |ming the| interna|
|00000170| 6c 20 73 70 65 61 6b 65 | 72 7d 0a 42 65 6c 69 65 |l speake|r}.Belie|
|00000180| 76 65 20 69 74 20 6f 72 | 20 6e 6f 74 2c 20 79 6f |ve it or| not, yo|
|00000190| 75 72 20 50 43 20 73 70 | 65 61 6b 65 72 20 69 73 |ur PC sp|eaker is|
|000001a0| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 4c 69 6e | part of| the Lin|
|000001b0| 75 78 20 63 6f 6e 73 6f | 6c 65 20 61 6e 64 0a 74 |ux conso|le and.t|
|000001c0| 68 75 73 20 61 20 63 68 | 61 72 61 63 74 65 72 20 |hus a ch|aracter |
|000001d0| 64 65 76 69 63 65 2e 20 | 54 68 65 72 65 66 6f 72 |device. |Therefor|
|000001e0| 65 2c 20 69 6f 63 74 6c | 28 29 20 72 65 71 75 65 |e, ioctl|() reque|
|000001f0| 73 74 73 20 65 78 69 73 | 74 20 74 6f 20 6d 61 6e |sts exis|t to man|
|00000200| 69 70 75 6c 61 74 65 0a | 69 74 2e 20 20 46 6f 72 |ipulate.|it. For|
|00000210| 20 74 68 65 20 69 6e 74 | 65 72 6e 61 6c 20 73 70 | the int|ernal sp|
|00000220| 65 61 6b 65 72 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |eaker th|e follow|
|00000230| 69 6e 67 20 32 20 72 65 | 71 75 65 73 74 73 20 65 |ing 2 re|quests e|
|00000240| 78 69 73 74 3a 0a 0a 5c | 62 65 67 69 6e 20 7b 65 |xist:..\|begin {e|
|00000250| 6e 75 6d 65 72 61 74 65 | 7d 0a 5c 69 74 65 6d 20 |numerate|}.\item |
|00000260| 4b 44 4d 4b 54 4f 4e 45 | 0a 0a 20 20 20 5c 6e 6f |KDMKTONE|.. \no|
|00000270| 69 6e 64 65 6e 74 20 47 | 65 6e 65 72 61 74 65 73 |indent G|enerates|
|00000280| 20 61 20 62 65 65 70 20 | 66 6f 72 20 61 20 73 70 | a beep |for a sp|
|00000290| 65 63 69 66 69 65 64 20 | 74 69 6d 65 20 75 73 69 |ecified |time usi|
|000002a0| 6e 67 20 74 68 65 20 6b | 65 72 6e 65 6c 20 74 69 |ng the k|ernel ti|
|000002b0| 6d 65 72 2e 0a 0a 20 20 | 20 5c 6e 6f 69 6e 64 65 |mer... | \noinde|
|000002c0| 6e 74 20 45 78 61 6d 70 | 6c 65 3a 20 7b 5c 74 74 |nt Examp|le: {\tt|
|000002d0| 20 69 6f 63 74 6c 20 28 | 66 64 2c 20 4b 44 4d 4b | ioctl (|fd, KDMK|
|000002e0| 54 4f 4e 45 2c 28 6c 6f | 6e 67 29 20 61 72 67 75 |TONE,(lo|ng) argu|
|000002f0| 6d 65 6e 74 29 7d 2e 0a | 0a 5c 69 74 65 6d 20 4b |ment)}..|.\item K|
|00000300| 49 4f 43 53 4f 55 4e 44 | 0a 0a 20 20 20 5c 6e 6f |IOCSOUND|.. \no|
|00000310| 69 6e 64 65 6e 74 20 47 | 65 6e 65 72 61 74 65 73 |indent G|enerates|
|00000320| 20 61 6e 20 65 6e 64 6c | 65 73 73 20 62 65 65 70 | an endl|ess beep|
|00000330| 20 6f 72 20 73 74 6f 70 | 73 20 61 20 63 75 72 72 | or stop|s a curr|
|00000340| 65 6e 74 6c 79 20 73 6f | 75 6e 64 69 6e 67 20 62 |ently so|unding b|
|00000350| 65 65 70 2e 0a 0a 20 20 | 20 5c 6e 6f 69 6e 64 65 |eep... | \noinde|
|00000360| 6e 74 20 45 78 61 6d 70 | 6c 65 3a 20 7b 5c 74 74 |nt Examp|le: {\tt|
|00000370| 20 69 6f 63 74 6c 28 66 | 64 2c 4b 49 4f 43 53 4f | ioctl(f|d,KIOCSO|
|00000380| 55 4e 44 2c 28 69 6e 74 | 29 20 74 6f 6e 65 29 7d |UND,(int|) tone)}|
|00000390| 2e 0a 5c 65 6e 64 20 7b | 65 6e 75 6d 65 72 61 74 |..\end {|enumerat|
|000003a0| 65 7d 0a 0a 54 68 65 20 | 7b 5c 74 74 20 61 72 67 |e}..The |{\tt arg|
|000003b0| 75 6d 65 6e 74 7d 20 63 | 6f 6e 73 69 73 74 73 20 |ument} c|onsists |
|000003c0| 6f 66 20 74 68 65 20 7b | 5c 74 74 20 74 6f 6e 65 |of the {|\tt tone|
|000003d0| 7d 20 76 61 6c 75 65 20 | 69 6e 20 74 68 65 20 6c |} value |in the l|
|000003e0| 6f 77 20 77 6f 72 64 20 | 61 6e 64 0a 74 68 65 20 |ow word |and.the |
|000003f0| 64 75 72 61 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |duration| in the |
|00000400| 68 69 67 68 20 77 6f 72 | 64 2e 20 54 68 65 20 7b |high wor|d. The {|
|00000410| 5c 74 74 20 74 6f 6e 65 | 7d 20 76 61 6c 75 65 20 |\tt tone|} value |
|00000420| 69 73 20 6e 6f 74 20 74 | 68 65 0a 66 72 65 71 75 |is not t|he.frequ|
|00000430| 65 6e 63 79 2e 20 54 68 | 65 20 50 43 20 6d 61 69 |ency. Th|e PC mai|
|00000440| 6e 62 6f 61 72 64 20 74 | 69 6d 65 72 20 38 32 35 |nboard t|imer 825|
|00000450| 34 20 69 73 20 63 6c 6f | 63 6b 65 64 20 61 74 20 |4 is clo|cked at |
|00000460| 31 2e 31 39 20 4d 48 7a | 20 61 6e 64 20 73 6f 20 |1.19 MHz| and so |
|00000470| 0a 69 74 27 73 20 31 31 | 39 30 30 30 30 2f 66 72 |.it's 11|90000/fr|
|00000480| 65 71 75 65 6e 63 79 2e | 20 54 68 65 20 64 75 72 |equency.| The dur|
|00000490| 61 74 69 6f 6e 20 69 73 | 20 6d 65 61 73 75 72 65 |ation is| measure|
|000004a0| 64 20 69 6e 20 74 69 6d | 65 72 20 74 69 63 6b 73 |d in tim|er ticks|
|000004b0| 2e 20 20 42 6f 74 68 0a | 69 6f 63 74 6c 20 63 61 |. Both.|ioctl ca|
|000004c0| 6c 6c 73 20 72 65 74 75 | 72 6e 20 69 6d 6d 65 64 |lls retu|rn immed|
|000004d0| 69 61 74 65 6c 79 20 73 | 6f 20 79 6f 75 20 63 61 |iately s|o you ca|
|000004e0| 6e 20 74 68 69 73 20 77 | 61 79 20 70 72 6f 64 75 |n this w|ay produ|
|000004f0| 63 65 20 62 65 65 70 73 | 0a 77 69 74 68 6f 75 74 |ce beeps|.without|
|00000500| 20 62 6c 6f 63 6b 69 6e | 67 20 74 68 65 20 70 72 | blockin|g the pr|
|00000510| 6f 67 72 61 6d 2e 5c 5c | 20 0a 4b 44 4d 4b 54 4f |ogram.\\| .KDMKTO|
|00000520| 4e 45 20 73 68 6f 75 6c | 64 20 62 65 20 75 73 65 |NE shoul|d be use|
|00000530| 64 20 66 6f 72 20 77 61 | 72 6e 69 6e 67 20 73 69 |d for wa|rning si|
|00000540| 67 6e 61 6c 73 20 62 65 | 63 61 75 73 65 20 79 6f |gnals be|cause yo|
|00000550| 75 20 64 6f 6e 27 74 20 | 68 61 76 65 0a 74 6f 20 |u don't |have.to |
|00000560| 77 6f 72 72 79 20 61 62 | 6f 75 74 20 73 74 6f 70 |worry ab|out stop|
|00000570| 70 69 6e 67 20 74 68 65 | 20 74 6f 6e 65 2e 5c 5c |ping the| tone.\\|
|00000580| 0a 4b 49 4f 43 53 4f 55 | 4e 44 20 63 61 6e 20 62 |.KIOCSOU|ND can b|
|00000590| 65 20 75 73 65 64 20 74 | 6f 20 70 6c 61 79 20 6d |e used t|o play m|
|000005a0| 65 6c 6f 64 69 65 73 20 | 61 73 20 64 65 6d 6f 6e |elodies |as demon|
|000005b0| 73 74 72 61 74 65 64 20 | 69 6e 20 74 68 65 20 65 |strated |in the e|
|000005c0| 78 61 6d 70 6c 65 0a 70 | 72 6f 67 72 61 6d 20 73 |xample.p|rogram s|
|000005d0| 70 6c 61 79 20 7b 5c 69 | 74 20 28 70 6c 65 61 73 |play {\i|t (pleas|
|000005e0| 65 20 73 65 6e 64 20 6d | 6f 72 65 20 2e 73 6e 67 |e send m|ore .sng|
|000005f0| 20 66 69 6c 65 73 20 74 | 6f 20 6d 65 29 2e 7d 20 | files t|o me).} |
|00000600| 54 6f 20 73 74 6f 70 20 | 74 68 65 0a 62 65 65 70 |To stop |the.beep|
|00000610| 20 79 6f 75 20 68 61 76 | 65 20 74 6f 20 75 73 65 | you hav|e to use|
|00000620| 20 74 68 65 20 7b 5c 74 | 74 20 74 6f 6e 65 7d 20 | the {\t|t tone} |
|00000630| 76 61 6c 75 65 20 30 2e | 0a 0a 5c 73 65 63 74 69 |value 0.|..\secti|
|00000640| 6f 6e 20 7b 50 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |on {Prog|ramming |
|00000650| 61 20 73 6f 75 6e 64 20 | 63 61 72 64 7d 0a 0a 46 |a sound |card}..F|
|00000660| 6f 72 20 79 6f 75 20 61 | 73 20 61 20 70 72 6f 67 |or you a|s a prog|
|00000670| 72 61 6d 6d 65 72 2c 20 | 69 74 20 69 73 20 69 6d |rammer, |it is im|
|00000680| 70 6f 72 74 61 6e 74 20 | 74 6f 20 6b 6e 6f 77 20 |portant |to know |
|00000690| 69 66 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 4c |if the c|urrent L|
|000006a0| 69 6e 75 78 0a 73 79 73 | 74 65 6d 20 68 61 73 20 |inux.sys|tem has |
|000006b0| 61 20 73 6f 75 6e 64 20 | 63 61 72 64 20 70 6c 75 |a sound |card plu|
|000006c0| 67 67 65 64 20 69 6e 2e | 20 4f 6e 65 20 77 61 79 |gged in.| One way|
|000006d0| 20 74 6f 20 63 68 65 63 | 6b 20 69 73 20 74 6f 20 | to chec|k is to |
|000006e0| 65 78 61 6d 69 6e 65 0a | 2f 64 65 76 2f 73 6e 64 |examine.|/dev/snd|
|000006f0| 73 74 61 74 2e 20 20 49 | 66 20 6f 70 65 6e 69 6e |stat. I|f openin|
|00000700| 67 20 2f 64 65 76 2f 73 | 6e 64 73 74 61 74 20 66 |g /dev/s|ndstat f|
|00000710| 61 69 6c 73 20 61 6e 64 | 20 65 72 72 6e 6f 3d 45 |ails and| errno=E|
|00000720| 4e 4f 44 45 56 20 74 68 | 65 6e 20 6e 6f 0a 73 6f |NODEV th|en no.so|
|00000730| 75 6e 64 20 64 72 69 76 | 65 72 20 69 73 20 61 63 |und driv|er is ac|
|00000740| 74 69 76 61 74 65 64 20 | 77 68 69 63 68 20 6d 65 |tivated |which me|
|00000750| 61 6e 73 20 79 6f 75 20 | 77 69 6c 6c 20 67 65 74 |ans you |will get|
|00000760| 20 6e 6f 20 68 65 6c 70 | 20 66 72 6f 6d 20 74 68 | no help| from th|
|00000770| 65 0a 6b 65 72 6e 65 6c | 20 73 6f 75 6e 64 20 64 |e.kernel| sound d|
|00000780| 72 69 76 65 72 2e 20 20 | 54 68 65 20 73 61 6d 65 |river. |The same|
|00000790| 20 72 65 73 75 6c 74 20 | 6d 69 67 68 74 20 62 65 | result |might be|
|000007a0| 20 61 63 68 69 65 76 65 | 64 20 62 79 20 74 72 79 | achieve|d by try|
|000007b0| 69 6e 67 20 74 6f 0a 6f | 70 65 6e 20 2f 64 65 76 |ing to.o|pen /dev|
|000007c0| 2f 64 73 70 20 61 73 20 | 6c 6f 6e 67 20 61 73 20 |/dsp as |long as |
|000007d0| 69 74 20 69 73 20 6e 6f | 74 20 61 20 6c 69 6e 6b |it is no|t a link|
|000007e0| 20 74 6f 20 74 68 65 20 | 70 63 73 6e 64 20 64 72 | to the |pcsnd dr|
|000007f0| 69 76 65 72 20 69 6e 20 | 77 68 69 63 68 0a 63 61 |iver in |which.ca|
|00000800| 73 65 20 6f 70 65 6e 28 | 29 20 77 69 6c 6c 20 6e |se open(|) will n|
|00000810| 6f 74 20 66 61 69 6c 2e | 0a 0a 49 66 20 79 6f 75 |ot fail.|..If you|
|00000820| 20 77 61 6e 74 20 74 6f | 20 6d 65 73 73 20 77 69 | want to| mess wi|
|00000830| 74 68 20 61 20 73 6f 75 | 6e 64 20 63 61 72 64 20 |th a sou|nd card |
|00000840| 61 74 20 74 68 65 20 68 | 61 72 64 77 61 72 65 20 |at the h|ardware |
|00000850| 6c 65 76 65 6c 20 79 6f | 75 20 6b 6e 6f 77 0a 74 |level yo|u know.t|
|00000860| 68 61 74 20 73 6f 6d 65 | 20 63 6f 6d 62 69 6e 61 |hat some| combina|
|00000870| 74 69 6f 6e 20 6f 66 20 | 6f 75 74 62 28 29 20 61 |tion of |outb() a|
|00000880| 6e 64 20 69 6e 62 28 29 | 20 63 61 6c 6c 73 20 77 |nd inb()| calls w|
|00000890| 69 6c 6c 20 64 65 74 65 | 63 74 20 74 68 65 20 73 |ill dete|ct the s|
|000008a0| 6f 75 6e 64 0a 63 61 72 | 64 20 79 6f 75 20 61 72 |ound.car|d you ar|
|000008b0| 65 20 6c 6f 6f 6b 69 6e | 67 20 66 6f 72 2e 0a 0a |e lookin|g for...|
|000008c0| 42 79 20 75 73 69 6e 67 | 20 74 68 65 20 73 6f 75 |By using| the sou|
|000008d0| 6e 64 20 64 72 69 76 65 | 72 20 66 6f 72 20 79 6f |nd drive|r for yo|
|000008e0| 75 72 20 70 72 6f 67 72 | 61 6d 73 2c 20 63 68 61 |ur progr|ams, cha|
|000008f0| 6e 63 65 73 20 61 72 65 | 20 74 68 61 74 20 74 68 |nces are| that th|
|00000900| 65 79 20 77 69 6c 6c 0a | 77 6f 72 6b 20 6f 6e 20 |ey will.|work on |
|00000910| 6f 74 68 65 72 20 69 33 | 38 36 20 73 79 73 74 65 |other i3|86 syste|
|00000920| 6d 73 20 61 73 20 77 65 | 6c 6c 2c 20 73 69 6e 63 |ms as we|ll, sinc|
|00000930| 65 20 73 6f 6d 65 20 63 | 6c 65 76 65 72 20 70 65 |e some c|lever pe|
|00000940| 6f 70 6c 65 20 64 65 63 | 69 64 65 64 20 74 6f 0a |ople dec|ided to.|
|00000950| 75 73 65 20 74 68 65 20 | 73 61 6d 65 20 64 72 69 |use the |same dri|
|00000960| 76 65 72 20 66 6f 72 20 | 4c 69 6e 75 78 2c 20 69 |ver for |Linux, i|
|00000970| 73 63 2c 20 46 72 65 65 | 42 53 44 20 61 6e 64 20 |sc, Free|BSD and |
|00000980| 6d 6f 73 74 20 6f 74 68 | 65 72 20 69 33 38 36 20 |most oth|er i386 |
|00000990| 62 61 73 65 64 0a 73 79 | 73 74 65 6d 73 2e 20 20 |based.sy|stems. |
|000009a0| 49 74 20 77 69 6c 6c 20 | 61 69 64 20 69 6e 20 70 |It will |aid in p|
|000009b0| 6f 72 74 69 6e 67 20 70 | 72 6f 67 72 61 6d 73 20 |orting p|rograms |
|000009c0| 69 66 20 4c 69 6e 75 78 | 20 6f 6e 20 6f 74 68 65 |if Linux| on othe|
|000009d0| 72 0a 61 72 63 68 69 74 | 65 63 74 75 72 65 73 20 |r.archit|ectures |
|000009e0| 6f 66 66 65 72 73 20 74 | 68 65 20 73 61 6d 65 20 |offers t|he same |
|000009f0| 73 6f 75 6e 64 20 64 65 | 76 69 63 65 20 69 6e 74 |sound de|vice int|
|00000a00| 65 72 66 61 63 65 2e 20 | 20 41 20 73 6f 75 6e 64 |erface. | A sound|
|00000a10| 20 63 61 72 64 20 69 73 | 0a 6e 6f 74 20 70 61 72 | card is|.not par|
|00000a20| 74 20 6f 66 20 74 68 65 | 20 4c 69 6e 75 78 20 63 |t of the| Linux c|
|00000a30| 6f 6e 73 6f 6c 65 2c 20 | 62 75 74 20 69 73 20 61 |onsole, |but is a|
|00000a40| 20 73 70 65 63 69 61 6c | 20 64 65 76 69 63 65 2e | special| device.|
|00000a50| 20 41 20 73 6f 75 6e 64 | 20 63 61 72 64 0a 6d 6f | A sound| card.mo|
|00000a60| 73 74 6c 79 20 6f 66 66 | 65 72 73 20 74 68 72 65 |stly off|ers thre|
|00000a70| 65 20 6d 61 69 6e 20 66 | 65 61 74 75 72 65 73 3a |e main f|eatures:|
|00000a80| 0a 0a 5c 62 65 67 69 6e | 20 7b 73 61 6d 65 70 61 |..\begin| {samepa|
|00000a90| 67 65 7d 0a 5c 62 65 67 | 69 6e 20 7b 69 74 65 6d |ge}.\beg|in {item|
|00000aa0| 69 7a 65 7d 0a 5c 69 74 | 65 6d 20 44 69 67 69 74 |ize}.\it|em Digit|
|00000ab0| 61 6c 20 73 61 6d 70 6c | 65 20 69 6e 70 75 74 2f |al sampl|e input/|
|00000ac0| 6f 75 74 70 75 74 0a 5c | 69 74 65 6d 20 46 72 65 |output.\|item Fre|
|00000ad0| 71 75 65 6e 63 79 20 6d | 6f 64 75 6c 61 74 69 6f |quency m|odulatio|
|00000ae0| 6e 20 6f 75 74 70 75 74 | 0a 5c 69 74 65 6d 20 41 |n output|.\item A|
|00000af0| 20 6d 69 64 69 20 69 6e | 74 65 72 66 61 63 65 0a | midi in|terface.|
|00000b00| 5c 65 6e 64 20 7b 69 74 | 65 6d 69 7a 65 7d 0a 5c |\end {it|emize}.\|
|00000b10| 65 6e 64 20 7b 73 61 6d | 65 70 61 67 65 7d 0a 0a |end {sam|epage}..|
|00000b20| 45 61 63 68 20 6f 66 20 | 74 68 65 73 65 20 66 65 |Each of |these fe|
|00000b30| 61 74 75 72 65 73 20 68 | 61 76 65 20 74 68 65 69 |atures h|ave thei|
|00000b40| 72 20 6f 77 6e 20 64 65 | 76 69 63 65 20 64 72 69 |r own de|vice dri|
|00000b50| 76 65 72 20 69 6e 74 65 | 72 66 61 63 65 2e 20 46 |ver inte|rface. F|
|00000b60| 6f 72 20 64 69 67 69 74 | 61 6c 0a 73 61 6d 70 6c |or digit|al.sampl|
|00000b70| 65 73 20 69 74 20 69 73 | 20 2f 64 65 76 2f 64 73 |es it is| /dev/ds|
|00000b80| 70 2c 20 66 6f 72 20 74 | 68 65 20 66 72 65 71 75 |p, for t|he frequ|
|00000b90| 65 6e 63 79 20 6d 6f 64 | 75 6c 61 74 69 6f 6e 20 |ency mod|ulation |
|00000ba0| 69 74 20 69 73 0a 2f 64 | 65 76 2f 73 65 71 75 65 |it is./d|ev/seque|
|00000bb0| 6e 63 65 72 20 61 6e 64 | 20 66 6f 72 20 74 68 65 |ncer and| for the|
|00000bc0| 20 6d 69 64 69 20 69 6e | 74 65 72 66 61 63 65 20 | midi in|terface |
|00000bd0| 69 74 20 69 73 20 2f 64 | 65 76 2f 6d 69 64 69 2e |it is /d|ev/midi.|
|00000be0| 20 20 54 68 65 20 73 6f | 75 6e 64 0a 73 65 74 74 | The so|und.sett|
|00000bf0| 69 6e 67 73 20 28 6c 69 | 6b 65 20 76 6f 6c 75 6d |ings (li|ke volum|
|00000c00| 65 2c 20 62 61 6c 61 6e | 63 65 20 6f 72 20 62 61 |e, balan|ce or ba|
|00000c10| 73 73 29 20 63 61 6e 20 | 62 65 20 63 6f 6e 74 72 |ss) can |be contr|
|00000c20| 6f 6c 6c 65 64 20 76 69 | 61 20 74 68 65 0a 2f 64 |olled vi|a the./d|
|00000c30| 65 76 2f 6d 69 78 65 72 | 20 69 6e 74 65 72 66 61 |ev/mixer| interfa|
|00000c40| 63 65 2e 20 20 46 6f 72 | 20 63 6f 6d 70 61 74 69 |ce. For| compati|
|00000c50| 62 69 6c 69 74 79 20 72 | 65 61 73 6f 6e 73 20 61 |bility r|easons a|
|00000c60| 20 2f 64 65 76 2f 61 75 | 64 69 6f 20 64 65 76 69 | /dev/au|dio devi|
|00000c70| 63 65 0a 65 78 69 73 74 | 73 20 77 68 69 63 68 20 |ce.exist|s which |
|00000c80| 63 61 6e 20 72 65 61 64 | 20 53 55 4e 20 24 5c 6d |can read| SUN $\m|
|00000c90| 75 24 2d 6c 61 77 20 73 | 6f 75 6e 64 20 64 61 74 |u$-law s|ound dat|
|00000ca0| 61 2c 20 62 75 74 20 69 | 74 20 6d 61 70 73 20 74 |a, but i|t maps t|
|00000cb0| 6f 20 74 68 65 0a 64 69 | 67 69 74 61 6c 20 73 61 |o the.di|gital sa|
|00000cc0| 6d 70 6c 65 20 64 65 76 | 69 63 65 2e 0a 0a 59 6f |mple dev|ice...Yo|
|00000cd0| 75 20 61 72 65 20 72 69 | 67 68 74 20 69 66 20 79 |u are ri|ght if y|
|00000ce0| 6f 75 20 67 75 65 73 73 | 65 64 20 74 68 61 74 20 |ou guess|ed that |
|00000cf0| 79 6f 75 20 75 73 65 20 | 69 6f 63 74 6c 28 29 20 |you use |ioctl() |
|00000d00| 74 6f 20 6d 61 6e 69 70 | 75 6c 61 74 65 20 74 68 |to manip|ulate th|
|00000d10| 65 73 65 0a 64 65 76 69 | 63 65 73 2e 20 20 54 68 |ese.devi|ces. Th|
|00000d20| 65 20 69 6f 63 74 6c 28 | 29 20 72 65 71 75 65 73 |e ioctl(|) reques|
|00000d30| 74 73 20 61 72 65 20 64 | 65 66 69 6e 65 64 20 69 |ts are d|efined i|
|00000d40| 6e 20 24 3c 6c 69 6e 75 | 78 2f 73 6f 75 6e 64 63 |n $<linu|x/soundc|
|00000d50| 61 72 64 2e 68 3e 24 20 | 61 6e 64 0a 62 65 67 69 |ard.h>$ |and.begi|
|00000d60| 6e 20 77 69 74 68 20 53 | 4e 44 43 54 4c 5c 5f 2e |n with S|NDCTL\_.|
|00000d70| 0a 0a 5c 62 69 67 73 6b | 69 70 20 7b 5c 62 66 20 |..\bigsk|ip {\bf |
|00000d80| 53 69 6e 63 65 20 49 20 | 64 6f 6e 27 74 20 6f 77 |Since I |don't ow|
|00000d90| 6e 20 61 20 73 6f 75 6e | 64 63 61 72 64 0a 73 6f |n a soun|dcard.so|
|00000da0| 6d 65 6f 6e 65 20 65 6c | 73 65 20 68 61 73 20 74 |meone el|se has t|
|00000db0| 6f 20 63 6f 6e 74 69 6e | 75 65 20 68 65 72 65 7d |o contin|ue here}|
|00000dc0| 0a 0a 5c 65 6e 64 69 6e | 70 75 74 0a |..\endin|put. |
+--------+-------------------------+-------------------------+--------+--------+